<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>判断空对象</title>
</head>
<body>
    
    <script>
    
        // 判断空对象

        let obj = {};

        let test = {a:1}
        console.log(Object.keys(obj).length);
        console.log(Object.assign(test,obj)===test);
        

    </script>

</body>
</html>